package com.projeto.persistence;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The persistent class for the grouptable database table.
 *
 */
@Entity
public class GroupTable implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    private String groupid;
    private String name;

    public GroupTable() {
    }

    public String getGroupid() {
        return this.groupid;
    }

    public void setGroupid(String groupid) {
        this.groupid = groupid;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 67 * hash + (this.groupid != null ? this.groupid.hashCode() : 0);
        hash = 67 * hash + (this.name != null ? this.name.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final GroupTable other = (GroupTable) obj;
        if ((this.groupid == null) ? (other.groupid != null) : !this.groupid.equals(other.groupid)) {
            return false;
        }
        if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return groupid;
    }

}